﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Hec.TextMining
{

    public class Document
    {
        public Document() 
        {
            Distances = new List<Hec.TextMining.KeyValuePair<Document, Distance>>();
        }

        public Document(string fullName)
        {
            FullName = fullName;
        }

        public int ID { get; set; }

        [XmlIgnore]
        public IList<Hec.TextMining.KeyValuePair<Document, Distance>> Distances;


        public override bool Equals(object obj)
        {
            return (obj as Document).FullName == this.FullName;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public string FullName { get; set; }
        public double TotalTermCount { get; set; }
    }
}
